import request from '@/utils/request'
export default {
    getCommentByCourseId(page,limit,courseId){
        return request({
            url: `/eduservice/comment/${page}/${limit}`,
            method: 'post',
            params: {courseId}
        })
    },
    addComment(comment,token) {
        return request({
          url: '/eduservice/comment/addcomment/auth?token='+token,
          method: 'post',
          data: comment
        })
      }
}